January 04, 2025
v3 Get Whatsapp Sender
Description:
Fetch a specific WhatsApp Sender
URI:
https://api.multitel.net/v3/wa_sender/${sender_id}
Methods:
GET
Sample Output:
{ "status": { "code": 200, "msg": "" }, "response": [ { "id": "wasid.397fd18366e8a219beadce7cf6687007", "phone_number": "33172813320", "phone_number_id": "529955226878643", "status": "deleted", "date": "2024-12-18 17:00:23" }, ] }
Sample Code:
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.multitel.net/v3/wa_sender/${sender_id}', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Accept: application/json', 'Authorization: Basic YWRtaW46Vnc0OXBYNk', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;